<% add_decidim_page_title(t(".title")) %>
<div class="item_show__header">
  <h1 class="item_show__header-title">
    <%= t(".title") %>
  </h1>
</div>
<div class="item__edit item__edit-1col">
  <div class="item__edit-form">
    <%= decidim_form_for(@form, url: import_results_path, html: { class: "form form-defaults import_projects" }) do |form| %>
      <div class="card py-4">
        <div class="card-section space-y-4 prose max-w-full">
          <div class="row column">
            <p><%= t(".info",
                     link_new_status: new_status_path,
                     link_new_result: new_result_path,
                     link_export_csv: link_to(t(".download_export"),exports_path(current_component, id: "results", format: "CSV"), method: :post)
                   ).try("html_safe") %></p>
          </div>
          <div class="row column">
            <%= form.upload :file, button_class: "button button__sm button__transparent-secondary" %>
          </div>
        </div>
      </div>
      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= submit_tag t(".import"), class: "button button__sm button__secondary" %>
        </div>
      </div>
    <% end %>
  </div>
</div>
